package com.zjxh.zjxh.common;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @description: AOP切面日志
 * @author: oyp @Date: 2020/4/20 on 4:02 下午
 */
@Getter
@Setter
@Accessors(chain = true)
public class OperationLog implements Serializable {

  private static final long serialVersionUID = -571971804713770019L;

  @JSONField(ordinal = 0)
  private String moduleName;

  @JSONField(ordinal = 1)
  private String platform;

  @JSONField(ordinal = 2)
  private String apiDesc;

  @JSONField(ordinal = 3)
  private String ip;

  @JSONField(ordinal = 4)
  private String requestUri;

  @JSONField(ordinal = 5)
  private String requestMethod;

  @JSONField(ordinal = 6)
  private long timeCost;

  @JSONField(ordinal = 6)
  private String userId;

  @JSONField(ordinal = 7)
  private String params;

  @JSONField(ordinal = 8)
  private Object result;

  @JSONField(serialize = false)
  private String code;

  @JSONField(serialize = false)
  private String username;

  @JSONField(serialize = false)
  private String msg;
}
